﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TeamV_BitmobileThickClient
{
    class WarehouseBiz
    {

        //this method gets all parts from the Warehouse
        public Warehouse.Parts[] getParts()
        {

            Warehouse.WarehouseServiceClient proxy = new Warehouse.WarehouseServiceClient();
            Warehouse.Parts[] parts = proxy.GetParts();

            return parts;

        }

        //this method replenish stock async from the Reseller
        public void replenishStock( String name, Int32 quantity )
        {

            Reseller.ResellerServiceClient proxy = new Reseller.ResellerServiceClient();
            proxy.deliverParts( name, quantity );

        }
    }
}
